
GT.weather = class()

---@class GT.weather.type 天气ID
GT.weather.type={
    ['无']=0,
    ['小雨']=1,
    ['大雨']=2,
    ['小雪']=3,
    ['大雪']=4,
    ['暴风雪']=5,
    ['魔力上升']=6,
    ['月光']=7,
    ['日光']=8,
    ['小风']=9,
    ['大风']=10,
    ['沙尘暴']=11,
    ['蓝雾']=12,
    ['绿雾']=13,
    ['红雾']=14,
    ['白雾']=15,
}
--- 天气系统开关
---@param weatherID Int32 天气ID
---@param time Float 时间
---@param intensity Float 强度
function GT.weather.set_weahter_enable(weatherID, time, intensity)
    game_api.set_weahter_enable(weatherID, time, intensity)
end

--- 设置全局天气
---@param weather_type UInt32 天气类型
function GT.weather.update_global_weather(weather_type)
    game_api.update_global_weather(weather_type)
end

--- 获得全局天气
---@return UInt32
function GT.weather.get_global_weather()
    return game_api.get_global_weather()
end
